import { createApp } from 'vue'
import App from '@/App.vue'
import router from './router'
import pinia from './store'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

import 'virtual:svg-icons-register'
import globalComponent from '@/components'
import '@/styles/index.scss'

import './permission'

createApp(App)
  .use(router)
  .use(pinia)
  .use(ElementPlus, {
    locale: zhCn
  })
  .use(globalComponent)
  .mount('#app')
